Skip to content

Conversation

@ickshonpe
Copy link
Contributor

@ickshonpe ickshonpe commented Sep 26, 2025

Objective

Remove TextSpan. Instead, descendant text entities use the same primary component (Text or Text2d) as their root text entity.

Fixes #21226

Solution

Remove TextSpan.
Root text entities are identified by querying for their parent to see if it is also a text entity.

Testing

Examples (those that have been updated) seem to work.

Not optimised yet, so quite a bit slower.

Showcase

@alice-i-cecile alice-i-cecile added C-Usability A targeted quality-of-life change that makes Bevy easier to use A-Text Rendering and layout for characters M-Release-Note Work that should be called out in the blog due to impact X-Contentious There are nontrivial implications that should be thought through S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Sep 26, 2025
@github-actions
Copy link
Contributor

It looks like your PR has been selected for a highlight in the next release blog post, but you didn't provide a release note.

Please review the instructions for writing release notes, then expand or revise the content in the release notes directory to showcase your changes.

@alice-i-cecile
Copy link
Member

Assuming we can get the perf not-terrible, I am strongly in favor of this direction. The distinction felt very fragile and confusing to me.

@ickshonpe
Copy link
Contributor Author

Closing, changes are include in #21331.

@ickshonpe ickshonpe closed this Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters C-Usability A targeted quality-of-life change that makes Bevy easier to use M-Release-Note Work that should be called out in the blog due to impact S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged X-Contentious There are nontrivial implications that should be thought through

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove TextSpans

2 participants